package cn.methodObject;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class B {
    private A a;

    public B() {
    }

    public B(A a) {
        this.a = a;
    }

    public void goToSchool(A a){
        a.eat();
        System.out.println("love going to school");
    }
}
